﻿package com.wandian.controller
{
	import com.wandian.view.mediator.TipMediator;
	import org.puremvc.as3.patterns.command.*;
	import org.puremvc.as3.interfaces.INotification;

	/**
	 *
	 * @author long
	 */
	public class TipCommand extends SimpleCommand
	{

		public function TipCommand()
		{
			return;
		} 

		override public function execute(notification:INotification):void
		{
			super.execute(notification);
			switch (notification.getName())
			{
				case CLZNoticeName.TIPCOMMAND_ADD_TIP:
				{
					this.showTip();
					break;
				}
				default:
				{
					break;
				}
			}
			return;
		} 

		private function showTip():void
		{
			facade.registerMediator(new TipMediator());
			return;
		} 

	}
}
